package com.qf.controller;

import com.qf.pojo.resp.BaseResp;
import com.qf.service.ActorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/actor")
public class ActorController {

    @Autowired
    ActorService actorService;

    @RequestMapping("/findActroByMovie/{id}")
    public BaseResp findActroByMovie(@PathVariable("id")Integer movieId){
        return  actorService.findActroByMovie(movieId);
    }

}
